package www.openteam.com.contract.business.adapter;

import www.openteam.com.bean.ApprovalStatu;
import www.openteam.com.bean.DeleteInfo;
import www.openteam.com.bean.DeleteWholeInfo;
import www.openteam.com.bean.InsertStatus;

/**
 * Created by kylin on 2017/7/26.
 */

public class EditCustomOrderContract {


    public interface EditCustomOrderPresenter {
        //更新客户子订单
        void updateCustomOrderItemInfo(
                int id, String prodno
                , String wraptype, String paperinf
                , String senddate, String technicsinf
                , String printcolor, String paynumb
                , String othernumb, String price
                , String eprodno
        );

        //新建客户子订单
        void insertCustomOrderItemInfo(
                int id, String prodno
                , String wraptype, String paperinf
                , String senddate, String technicsinf
                , String printcolor, String paynumb
                , String othernumb, String price
        );
        //删除客户子订单
        void deleteCustomOrderItemInfo(int zbid, String prodno);


        //更新客户主订单
        void updateCustomOrderMainInfo(
                int id, String rdsno,
                String custid, String userid,
                String moneytype, String paytime
                , String sendtype, String custorderid
                , String alreadlypay, String inputdate
                , String inputer, String orderamount
                , String remark, String orderdate
                , String sendaddress, String istax
                , String taxrate, String invtype
                , String stype
        );



        //删除客户主订单
        void deleteCustomOrderInfo(int id);
    }


    public interface EditCustomOrderView {
        void loadDCOIData(DeleteWholeInfo deleteWholeInfo);

        void hideDCOIData(Throwable throwable);



        void updateCOIData(ApprovalStatu updateStatue);

        void hideCOIData(Throwable throwable);

        void loadECOIIData(DeleteInfo deleteInfo);//child

        void hideECOIIData(Throwable throwable);//child

        void updateCOMIData(ApprovalStatu updateStatue);//child

        void hideCOMIData(Throwable throwable);//child

        void insertCOMIData(ApprovalStatu insertStatus);//child

        void insertFailData(Throwable throwable);//child

    }


//    public interface UpdateCustomOrderItemInfoView {
//
//    }

}
